package com.cn.jdia.dc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.dc.dao.ServerHeartbeatMapper;
import com.cn.jdia.dc.model.ServerHeartbeat;
import com.cn.jdia.dc.service.IServerheartbeatService;

@Service("svHeartbeatService")
public class IServerheartbeatServiceImpl implements IServerheartbeatService{

	@Resource
	private ServerHeartbeatMapper mapper;
	
	@Override
	public List<ServerHeartbeat> getServerHeartbeat(String serverName, int times) {
		return this.mapper.selectByServer(serverName, times);
	}

}
